package com.fzy.core.tags;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensymphony.webwork.components.Component;
import com.opensymphony.webwork.components.TextField;
import com.opensymphony.webwork.views.jsp.ui.AbstractUITag;
import com.opensymphony.xwork.util.OgnlValueStack;

public class SelectQueryTag extends AbstractUITag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1937471307915902777L;
	String action;

	public Component getBean(OgnlValueStack stack, HttpServletRequest req,
			HttpServletResponse res) {
		return new SelectQuery(stack, req, res);
	}
	
    protected void populateParams() {
        super.populateParams();
        SelectQuery field = ((SelectQuery) component);
        field.setAction(action);
    }

	public void setAction(String action) {
		this.action = action;
	}

}
